<div class="temp1"></div>

<div class="intro_home">
<img src="<?php echo base_url(); ?>assets/img/banner_events.jpg" />
</div>

<div class="content">

<div class="news_home" style="border-bottom: 1px dotted #C5C5C5;">
    <div  id="calendar">       <!-- class="news_home1"-->
        <?php echo $calendar; ?>
    </div>
    
    </div>
    <div class="clear_left"></div>
</div>
<!--<div style="height: 138px;margin-top: 15px;padding: 0;width: 700px;">
<p><strong>NOTE:</strong></p>
    <div style="float:left; width:100px" class="bg_curr_date"><div style="width:300px; padding-left:100px">Current date</div></div>
    <div class="clear_left"><br /></div>
    <div style="float:left; width:100px" class="bg_evet_date"><div style="width:300px; padding-left:100px">Click to view the event detail</div></div>

</div>-->
<script>
jQuery(document).ready(function(){
	jQuery("#events_active").addClass('current');
});
</script>
<script>
function searchevent()
{
	
	myear=$("#year").val();
	mmonth=$("#month").val();
	
	ajax_loading(true);
	  calendarlink2="<?php echo $currentlang; ?>/loadcalendar/1/"+myear+"/"+mmonth;
	  $.ajax(
		{	
			url: calendarlink2,
			success: function(result)
			{
				$('#calendar').html(result);
				ajax_loading(false);
			}
		});
	  
	  //return false;
}
jQuery(document).ready(function(){
	jQuery("#calendar_current").addClass('current');
	
	});
    
   	ajax_loading = function(status){
        // View Loading.gif
        if (!status){
        	$("#loading").hide();				
        }
        else{
        	$("#calendar").html('<div style="padding-bottom:100px;padding-top:100px;padding-left:330px; z-index: 1010; width:32px; height:32px"><img src="<?php echo base_url(); ?>assets/img/loading-small.gif"></div>');				
        }
    }

jQuery(document).ready(function(){
	jQuery('#calendar_header a').live('click', function() {
	ajax_loading(true);
	  calendarlink=$(this).attr("href");
	  $.ajax(
		{	
			url: calendarlink,
			success: function(result)
			{
				$('#calendar').html(result);
				ajax_loading(false);
			}
		});
	  
	  return false;
	});
});
</script>